package cn.spikego.advicelite.client.eventapi.events.callables

import cn.spikego.advicelite.client.eventapi.events.Cancellable
import cn.spikego.advicelite.client.eventapi.events.Event

abstract class EventCancellable protected constructor() : Event, Cancellable {

    private var cancelled: Boolean = false

    override fun isCancelled(): Boolean = cancelled

    override fun setCancelled(state: Boolean) {
        cancelled = state
    }
}